import React from 'react';
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'
import Home from './components/Home'
import SongList from './components/SongList';
import Player from './components/Player';
import './App.css'
class App extends React.Component{
  render(){
    return(
      <Router>
        <Switch>
          <Route path="/songList/:id" component={SongList}></Route>
          <Route path="/player/:songMid/:songId" component={Player}></Route>
          <Route path="/" component={Home}></Route>
        </Switch>
      </Router>
    );
  }
}
export default App;
